package com.newcapce.news.dao;

import com.newcapce.news.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserInfoDao {
    boolean deleteByPrimaryKey(Integer userId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer userId);

    List<UserInfo> selectAll();

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    UserInfo login(@Param("userName") String userName, @Param("userPwd")String userPwd);

    List<UserInfo>  search(@Param("userName") String userName,@Param("userSex") String userSex,@Param("userAge") int userAge);
}
